package com.zxd.enums;

import static com.zxd.enums.SexEnum.BOY;

/**
 * ClassName:TestEnum
 * Package:com.zxd.enums
 *
 * @Date:2023/9/21 17:04
 * @Author:zxde
 */
public class TestEnum {
    public static void main(String[] args) {
        check(BOY);
    }

    public static void check(SexEnum sexEnum){
        switch (sexEnum){
            case BOY:
                System.out.println("boy");
                break;
            case GIRL:
                System.out.println("girl");
                break;
        }
    }

}



